/**
 * Created with Intellij JDEA
 * Description:
 * User:
 * Date:2022-03-19
 * Time:9:36
 */
class Node {
    public int val;
    public Node next;


    public Node(int val) {
        this.val = val;
    }
}

public class MyQueue {
    public Node front;
    public Node rear;

    public void offer (int val) {
        Node node = new Node(val);
        if (front == null) {
            front = node;
            rear = node;
        }else {
            rear = node.next;
            rear = node;
        }

    }

    public int peat() {
        if (isEmpty()) {
            throw new RuntimeException();
        }
        return front.next.val;
    }

    public boolean isEmpty() {
return true;
    }



}
